package com.ftg.learn.test1.book1;

/**
 * 测试I
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/8/9 9:02
 */

public class Demo {

    public static void main(String[] args) {

        Book book=new Book("HA1","LI1",112,3);
        Book book1=new Book("HA1","LI1",112,4);
        Book book2=new Book("HA2","LI2",112,3);

        User user=new User("li");
        user.lendbook(book);
        user.lendbook(book);
//        user.lendbook(book);
        System.out.println(user);

        BorrowRecord r1=new BorrowRecord();
        r1.setUser(user);
        r1.setBook(book);
        user.returnbook(1);
//        user.returnbook(0);

        System.out.println(user);

//        book.lend();
//        user.returnbook(book);
//        book.return1();



    }
}
